package io.unicorn.modules.water.dao;

import io.unicorn.modules.water.entity.WaterdeptEntity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * ${comments}
 * 
 * @author LNCG
 * @email LNCG@USTL.EDU.CN
 * @date 2021-05-11 20:43:42
 */
@Mapper
public interface WaterdeptDao extends BaseMapper<WaterdeptEntity> {

    List<WaterdeptEntity> queryWaterDept(Map<String, Object> params);

    List<WaterdeptEntity> queryWaterDeptAll(Map<String, Object> params);

    List<WaterdeptEntity> queryDeptCityAreaUnit(Map<String, Object> params);

    //提取异常客户信息二级机构信息
    List<WaterdeptEntity> queryDeptUnitSubWater(Long deptId);

    //提取全部客户信息二级机构
    List<WaterdeptEntity> queryWaterDeptAllSubWater(Long deptId);

    List<WaterdeptEntity> queryDeptUnitAlertSubWater(Long deptId);


    //2023.4.24 分公司小区树
    List<WaterdeptEntity> queryWaterDeptTreeFgs(String areaId);
    List<WaterdeptEntity> queryWaterUnitErrTreeFgs(String areaId);
}
